/******************************************************************************
 * @File name   :      IDealerUsrGrpApprovalDao.java
 *
 * @Author      :      chen shixiang
 *
 * @Date        :      2011-6-3
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * 2011-6-3 上午10:14:24        chen shixiang     1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.framework.dm.approval.dao;

import java.util.List;

import com.cap.bts.framework.dm.approval.domain.UserGroupApplication;
import com.cap.bts.framework.dm.approval.dto.QueryApplicationDto;
import com.cap.bts.framework.dm.approval.dto.QueryApproveDto;

import com.cap.bts.framework.common.dao.IBaseDao;

/**
 * dealer user group approval dao interface
 */
public interface IDealerUsrGrpApprovalDao extends IBaseDao<UserGroupApplication, Long> {

    /**
     * query application info
     * @Date        :      2011-6-3
     * @param QueryApplicationDto dto
     * @param boolean isPaging
     * @return
     */
    public List<UserGroupApplication> getUsrGrpApprovalByDto(QueryApplicationDto dto, boolean isPaging);
    
    /**
     * 根据EmployeeId得到UserGroupApplication
     * @Date        :      2011-7-1
     * @param employeeId long 
     * @return UserGroupApplication 
     */
    public UserGroupApplication getUserGroupApplicationByEmployeeId(long employeeId);

	/**
	 * get user group approval reminder
	 * @Date ：2011-11-23 上午11:37:42
	 * @param  QueryApplicationDto dto
	 */
	int getUsrGrpApprovalReminderByDto(QueryApplicationDto dto);
	
	 /**
     * query application info
     * @Date        :      2012-7-23
     * @param QueryApproveDto queryApproveDto
     * @param boolean isPaging
     * @return
     */
    public List<UserGroupApplication> getApproveResultByPageCondiation(QueryApproveDto queryApproveDto , boolean isPaging);
    
    /**
     * get approveResult by employee code
     * @Date        :      2012-7-23
     * @param QueryApproveDto queryApproveDto
     * @param boolean isPaging
     * @return
     */
    public List<UserGroupApplication> getApproveResultByEmployeeCode(String employeeCode);
    
    
    
}
